<SCRIPT type="text/javascript">
function submitForm(){
		$("#sqlAddForm").submit();
}
</SCRIPT>
<div class="artCon" style="padding:10px;">
	<div class="middleArt">
	<form class="form-horizontal" id="sqlAddForm" data-toggle="form" action="/${orgi}/dm/database/sqladdo.html" method="post">
	<input type="hidden" name="dbid" value="${databaseid!''}"/>
	<input type="hidden" name="tabledirid" value="${dirid!''}"/>
		<div class="artMain">
			<div class="mainCenter">

					<fieldset class="control-group">
						<label class="control-label" for="name">查询SQL名称：</label>
						<div class="controls">
							<input class="required span5"  maxlength="30"
								 id="name" name="name" type="text"> 
							<span
								class="help-inline"></span><i class="inputip">*</i>
						</div>
					</fieldset>
					<fieldset class="control-group">
						<label class="control-label" for="name">SQL语句：</label>
						<div class="controls">
							<textarea class="required span5" name = "sql"  id="sql" style="height:300px;"></textarea>
							<i class="inputip" style="vertical-align:top;">*</i>
						</div>
					</fieldset>

				</div>
		</div>
		<div class="mainCenter">
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
				<input type="button" onclick="submitForm()"  class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</form>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		$(".mainCenter ul li").hover(function(){
			$(this).addClass("cur").siblings("li").removeClass("cur");
		},function(){
			$(this).removeClass("cur");	
		});
	})
</script>
